function insertQue2(temp){
    const sqlite3 = require("sqlite3").verbose()
    const path = require('path');
    const dbName = path.join(__dirname, '../data/demo.db');
 
    var db;
    db = new sqlite3.Database(dbName,function(err){
        if(err) throw err;
    })
    var length=0;

    for(var ever in temp) {

        length++;

        }
    for(var i=0;i<length;i++){
        db.run(`update qtwo set comment=? WHERE e_id=? AND c_id=?`,temp[i].comment,temp[i].e_id,temp[i].c_id,function(err){
            if (err) throw err;  
        });
    }
    console.log('更新成功');
}
module.exports=insertQue2;
